<div class="header">Template manager</div>
<div id="template_index">
	<div id="templateControlPanel">Choose a template
		<select name="templateFile" id="templateFile" onChange="editTemplate();">
			<option value=""></option>
			{% for item in template %}
				{% if item.type == 'f' %}
					<option value="{{ item.path }}">{{ item.name }}</option>
				{% elseif item.type == 'd' %}
					<optgroup label="{{ item.name }}">
						{% for file in item.childs %}
							<option value="{{ file.path }}">{{ file.name }}</option>
						{% endfor %}
					</optgroup>
				{% endif %}
			{% endfor %}
		</select>
	</div>
	<div id="templateContentPanel"></div>
</div>